<?php
	session_start();
	header("Cache-Control: no-store, no-cache, must-revalidate");
if ( (session_is_registered('sesId') || session_is_registered('cvecliente')) ){
		require('templates/func_cliente_pedido.php');

		?>
		<html xmlns="http://www.w3.org/1999/xhtml">
		<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />	

		<script type="text/javascript" src="javascripts/prototype.js"> </script> 
		<script type="text/javascript" src="javascripts/effects.js"> </script>
		<script type="text/javascript" src="javascripts/window.js"> </script>
		<script type="text/javascript" src="javascripts/window_effects.js"> </script>
		<script type="text/javascript" src="javascripts/debug.js"> </script>

		<link href="themes/default.css" rel="stylesheet" type="text/css" >	 </link>
		<link href="themes/alphacube.css" rel="stylesheet" type="text/css" >	 </link>


			<LINK REL="stylesheet" TYPE="text/css" HREF="css/style.css">
			<script src="./templates/cliente_pedido_morsa.js?ms=<?php echo time() ?>"></script>
		<title>GRUPO MORSA</title>
		</head>
		<body>
		<script>
			var index= 0;
			var contentWin = null;
			var win;
			
			
		</script>
				<div id="footer"></div>

			             <?php echo detalle_pedido_vista(); ?>

		<form name='formavista' action='' method='post' >
		<table width='100%' align='center'>
		<tr>
			<td width='100%'>
				Comentario del Pedido:<br>
				<textarea cols='50' rows='5' id='comentario' name='comentario' onkeypress='fnlongitudconfirmacionpedido(event);'></textarea>
			</td>
		</tr>
		</table>
		
		<center>
		<table width='100%' align='center'>
		<tr>
			<td width='100%'>
				<input type='button' name='bpedido' value=' Confirmar enviar pedido ' onclick='fnconfirmagrabapedido();'>
				<input type='button' name='bpedido' value=' Cancelar '  onclick='fncerrarvista();'><BR/>
				<a href="javascript:Windows.closeAll()">Close all windows</a> (if it's possible)
			</td>
		</tr>
		</table>
		</center>

		</form>
		<script>
			document.getElementById('comentario').focus();
		</script>


		</body>
		</html>

		<?php
			

}else{
	header("LOCATION:index.php");
}
?>
